// 个人中心
import axios from "@/request/axios";

// 修改密码
export function changePassword(data: any) {
  return axios({
    url: "/system/userProfile/changePassword",
    method: "post",
    data: data,
  });
}

// 修改过期密码
export function changeValidPassword(data: any, token:string) {
  return axios({
    url: "/system/userProfile/changePassword",
    method: "post",
    data: data,
    headers:{token}
  });
}